package com.ellricky.baselib.adapter.xufei;

import android.app.Activity;
import android.view.View;
import android.widget.ImageView;

import com.andr.common.ui.adapter.BaseRecyclerAdapter;
import com.andr.common.ui.adapter.SmartViewHolder;
import com.andr.common.util.StrUtil;
import com.andr.common.util.ViewUtil;
import com.ellricky.baselib.R;
import com.ellricky.baselib.entity.PayRecord;
import com.ellricky.baselib.entity.xufei.PayRecordEntity;
import com.ellricky.baselib.ui.xufei.PayDetailActivity;
import com.ellricky.baselib.util.EAppUtil;
import com.ellricky.baselib.util.GlideUtil;

import androidx.viewpager.widget.ViewPager;

public class PayRecordAdapter extends BaseRecyclerAdapter<PayRecord> {

    private Activity context;

    public PayRecordAdapter(Activity context) {
        super(R.layout.base_adapter_stu_recharge_record);
        this.context = context;
    }

    @Override
    protected void onBindViewHolder(SmartViewHolder smartViewHolder, final PayRecord entity, int i) {
        smartViewHolder.text(R.id.tvTitle, entity.getLogProductName())
                .text(R.id.tvDate, entity.getLogCreatetime())
                .text(R.id.tvOperator, "操作人：" + StrUtil.filterEmpty(entity.getLogMemberName()))
                .text(R.id.tvPrice, entity.getLogAmount().toString())
                .text(R.id.tvClassNum, entity.getLogBasicNum().toString());
    }
}
